using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using System.Collections;

namespace TVT.UI.Helpers
{
    public class BaseControlHelper
    {
        public static string GetControlByDataType(string type, bool isReadOnly)
        {
            string typeControl = "";
            switch (type)
            {
                case "DateTime":
                    typeControl = "~/BaseControls/DateTimeMetaControl.ascx";
                    break;
                case "string":
                    typeControl = "~/BaseControls/ShortStringControl.ascx";
                    break;
                case "int":
                    typeControl = "~/BaseControls/IntegerControl.ascx";
                    break;
                case "decimal":
                    typeControl = "~/BaseControls/DecimalControl.ascx";
                    break;
                case "bool":
                    typeControl = "~/BaseControls/BooleanControl.ascx";
                    break;
                case "email":
                    typeControl = "~/BaseControls/EmailControl.ascx";
                    break;
            }
            return typeControl;
          
        }
    }
}
